<template>
	<view class="login_page">
		<loginOne v-if="isLogin == 1" @changeIslogin="changeIslogin"></loginOne>
		<loginTwo :query="userInfo" v-else></loginTwo>
	</view>
</template>

<script>
	import loginOne from './components/login1.vue'
	import loginTwo from './components/login2.vue'
	export default {
		components: {
			loginOne,
			loginTwo
		},
		data() {
			return {
				isLogin:1,
				userInfo:{},
			}
		},
		onLoad(){
			
		},
		methods: {
			changeIslogin() {
				this.isLogin = 2
			}
		}
	}
</script>

<style lang="scss" scoped>
	.login_page {}
</style>